number theory and linear algebra